<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/top.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<title>我是广告主-发布广告</title>
		<link rel="stylesheet" href="<%=basePath%>/css/global.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/style.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/vscroll.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/hscroll.css" />
		<script src="<%=basePath%>/js/SpryTabbedPanels.js"
			type="text/javascript"></script>
		<script src="<%=basePath%>/js/swfobject.js" type="text/javascript"></script>
		<script src="<%=basePath%>/js/jquery-1.7.2.min.js"
			type="text/javascript"></script>
		<script src="<%=basePath%>/js/jquery.imageScroller.js"
			type="text/javascript"></script>
		<script src="<%=basePath%>/js/hscroll.js" type="text/javascript"></script>
		<script src="<%=basePath%>/js/vscroll.js" type="text/javascript"></script>
		<link href="<%=basePath%>/css/SpryTabbedPanels.css" rel="stylesheet"
			type="text/css" />
		<style type="text/css">
#mb_main {
	border: 1px solid #82BBDD;
}

#mb_right {
	border: 1px solid #82BBDD;
}

#formInput input {
	line-height: 25px;
	height: 25px;
	width: 150px;
	margin: 0 auto;
}

.dingdanTable {
	width: 100%;
	border: 1px solid #F00;
	margin-bottom: 20px;
}

.dingdanTable tr td {
	border: 1px solid #F00;
}

h2 {
	font-size: 14px;
	font-weight: bold;
}
</style>
		<script type="text/javascript">
	$(function(){
		$("#h_nav ul li:eq(1)").find("a").addClass("selected");
	});
	function adType(obj){
		var t = obj.value;
		//rediretTr1 transmitTr1
		var rTr1 = $("#rediretTr1");
		var tranTr1 = $("#transmitTr1");
		if(t==1){
			rTr1.css("display","table-row");
			tranTr1.css("display","none");
		}else if(t==2){
			rTr1.css("display","none");
			tranTr1.css("display","table-row");
		}
	}
</script>
	</head>
	<body>
		<div id="container">
			<!--logo到导航条的内容-->
			<jsp:include page="head.jsp" flush="true"></jsp:include>
			<!--end heaer-->
			<div id="mainBody">
				<div>
					您所在的位置：微生物>>发布广告
				</div>
				<div>
					<span>第一步创建活动>></span><span>第二步选择微博主>></span><span>第三步提交创建</span>
				</div>
				<form name="createAdForm" action="<%=basePath %>/ad/adAction/createAd.ad" method="post"  enctype="multipart/form-data" >
				<table>
					<tr>
						<td>
							活动类型：
						</td>
						<td>
							<select id="adType" name="ads.adType" onchange="adType(this)">
								<option value="1">
									直发
								</option>
								<option value="2">
									转发
								</option>
							</select>
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							投放平台：
						</td>
						<td>
							<input type="radio" name="ads.platformId" checked="checked"
								value="1" />
							新浪微博
							<input type="radio" name="ads.platformId" value="2" />
							腾讯微博
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							广告名称：
						</td>
						<td>
							<input type="text" name="ads.adName" value="" />
						</td>
						<td></td>
					</tr>
					<tr id="rediretTr1">
						<td>
							直发图片：
						</td>
						<td>
							<input type="file" name="ads.directImg"
								style="width: 10px; border: 1px solid #F00; display: block; width: 100px;" />
							<img id="directImgPre" src="" />
						</td>
						<td></td>
					</tr>
					<tr id="transmitTr1" style="display: none;">
						<td>
							转发链接：
						</td>
						<td>
							<input type="text" name="ads.transmitUrl" title="转发链接" value="" />

						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							开始时间：
						</td>
						<td>
							<input type="text" name="ads.startTime" value="" />
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							结束时间：
						</td>
						<td>
							<input type="text" name="ads.endTime" value="" />
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							直发语：
						</td>
						<td>
							<textarea name="ads.adContent" rows="4" cols="20"></textarea>
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							活动要求：
						</td>
						<td>
							<textarea name="ads.require" rows="4" cols="20"></textarea>
						</td>
						<td></td>
					</tr>
					<tr>
						<td colspan="3">
							<input type="submit" name="submit" value="提交" />
						</td>
					</tr>
				</table>
				</form>
			</div>

			<!--end mainBody-->
			<div id="foot">
				<div id="contact">
					<a href="">关于我们</a>|
					<a href="">联系我们</a>|
					<a href="">加入我们</a>
				</div>
				<div id="copyright">
					版权所有 © 北京祥睿博通科技有限公司 2011-2012 . 京ICP备:******号
				</div>
			</div>
		</div>
		<script type="text/javascript">
	
</script>
	</body>
</html>
